#include "../Common/dms.hpp"
#include <time.h>
#include <gflags/gflags.h>
using namespace std;
using namespace AlibabaCloud;
DEFINE_bool(log_mod,false,"true为发布模式,false为调试模式");
DEFINE_string(log_file,"","发布模式下日志存储的文件");
DEFINE_int32(log_level,0,"要输出的日志等级");
DEFINE_string(AccessKeyID,"LTAI5tNQ3uQoEHfvPFr5J6zo","阿里云短信验证码发送平台密钥ID");
DEFINE_string(AccessKeySecret,"cYe9RQjtvsT8G1FOVbyDYRB2TWQSFy","阿里云短信验证码发送平台密钥");
int main(int argc, char* argv[])
{
    google::ParseCommandLineFlags(&argc,&argv,true);
    init_logger(FLAGS_log_mod,FLAGS_log_file,(spdlog::level::level_enum)FLAGS_log_level);
    DMSClient dmsc(FLAGS_AccessKeyID,FLAGS_AccessKeySecret);
    srand(time(nullptr));
    std::string code = std::to_string(rand()%10000); 
    dmsc.send("17373124944",code);

    return 0;
}